package po;

/**
 * @Description: TODO
 * @Author ZYX
 * @Date 2022/2/15 21:48
 * @Version 1.0
 */
public class UserEvent {

    public String userId;
    public String eventType;
    public Long timestamp;

    public UserEvent() {
    }

    public UserEvent(String userId, String eventType, Long timestamp) {
        this.userId = userId;
        this.eventType = eventType;
        this.timestamp = timestamp;
    }

    public static UserEvent of (String userId,String eventType,Long timestamp){
        return new UserEvent(userId,eventType,timestamp);
    }

    @Override
    public String toString() {
        return "OrderEvent{" +
                "userId='" + userId + '\'' +
                ", eventType='" + eventType + '\'' +
                ", timestamp=" + timestamp +
                '}';
    }
    
}
